package org.skyer.third.gateway.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单回流业务参数
 */
@Getter
@Setter
@ToString
public class OrderBackFlowRequestDTO implements Serializable {

    @ApiModelProperty(value = "发货平台类型参照 PlatformEnum", required = true)
    @NotNull(message = "发货平台类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "通用订单回流业务参数")
    private OrderBackFlowCommonDTO common;

    @ApiModelProperty(value = "京东订单回流业务参数")
    private JdOrderBackFlowDTO jd;

    @ApiModelProperty(value = "拼多多订单回流业务参数")
    private JdOrderBackFlowDTO pdd;

}
